package com.wct.ribbonrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author WEI (Email:changtan20000@163.com)
 * @description
 * @date: 2019/12/18 13:26
 */
@Configuration
public class MySelfRule {
    @Bean
    public IRule myRule() {
        // 默认使轮询，自定义使用随机
        return new RandomRuleWct();
    }
}
